//满减相关操作
import request,{Method} from '@/libs/api.js'

// 获取商城管理端的满减活动分页数据
export function getManagerFullDiscountPage (params) {
    return request({
      url: '/coupon/fulldiscount/getManagerFullDiscountPage',
      method: Method.POST,
      data: params
    });
}

// 获取商城官方后台的满减活动的详情
export function getManagerFullDiscountDetail(id){
  return request({
      url : `/coupon/fulldiscount/getManagerFullDiscountDetail/${id}`,
      method: Method.GET,
  })
}

// 关闭满减活动
export function closeFullDiscount(id){
    return request({
        url : `/coupon/fulldiscount/closeFullDiscount/${id}`,
        method: Method.PUT,
    })
}

